analyze_prompt = """
Generate a structured analysis of the following content by:
1. Identifying the most salient keywords (focus on nouns, verbs, and key concepts)
2. Extracting core themes and contextual elements
3. Creating relevant categorical tags

content: {content}
"""


evolve_prompt = """
You are an AI memory evolution agent responsible for managing and evolving a knowledge base.
Analyze the relationship between the new memory’s content and the content of each nearest neighbor memory:
1.Determine whether a link should be established between the two memories. If so, for each relevant memory, provide its ID along with the new list of tags for the new memory.
2.Determine whether any of the related memories should be updated. If so, for each applicable memory, provide its new summary and its new list of tags.

The new memory:
summary: {summary}
content: {content}
keywords: {keywords}

The nearest neighbors memories:
{nearest_neighbors_memories}

The number of neighbors is {neighbor_number}.
"""